package com.ktjy.Dao.impl;

import com.ktjy.Dao.Buyer;
import com.ktjy.factory.IntermediaryJdkproxyFactory;
import org.apache.log4j.Logger;
import org.junit.jupiter.api.Test;

public class havealookJdkProxy{
    private Logger logger= Logger.getLogger(havealookJdkProxy.class);
    @Test
    public void havealookJdkProxy() throws Exception{
        Buyer buyer= IntermediaryJdkproxyFactory.create(new RealBuyer());
        String result=buyer.havealook();
        logger.debug(result);
    }
}
